/*
* $Id: EditorItem.h 151 2010-09-23 11:22:00Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _EDITOR_ITEM_H_
#define _EDITOR_ITEM_H_

#include "EditorStructs.h"

class CEditorItem : public editorItem
{
protected:
	CSize m_size;
	CPoint m_point;
	bool m_bHide;
protected:
	virtual void Resize() = 0;
public:
	CEditorItem(const std::tstring& strName, int nId);
	virtual ~CEditorItem();
public:
	virtual void Paint(CDC* dc) = 0;
	virtual void ResizeItem();
	virtual int GetSizeY();
	virtual int GetPosY();
	virtual void SetSizeCx(int cx);
	virtual void SetPosY(int nPosY);
	virtual bool WillActive();
	virtual void Activate(bool bActive);
	virtual void Hide(bool bHide);
	virtual bool IsHide();
	virtual bool ProcessKey(unsigned int nChar, byte stateSysKey);
	virtual bool ProcessMouse(unsigned int nButton, CPoint pos, int param);
	virtual std::tstring GetValue();
};

#endif/*_EDITOR_ITEM_H_*/